﻿using Iworld.basis.Service;
using Iworld.Game.Service.Backstage.Export;
using Iworld.Game.Service.Backstage.Import;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace Iworld.Game.Service.Backstage
{
    /// <summary>
    /// 游戏后台服务
    /// </summary>
    [ServiceContract]
    public interface IGameService
    {
        /// <summary>
        /// 获取投注记录的分页列表
        /// </summary>
        /// <param name="import">数据集</param>
        /// <returns>返回投注记录的分页列表</returns>
        [OperationContract]
        PageResult<BettingRecordExport> GetBettingRecords(GetBettingRecordsImport import);

        /// <summary>
        /// 获取牌轮信息
        /// </summary>
        /// <param name="import"></param>
        /// <returns></returns>
        [OperationContract]
        PageResult<GameChapterExport> GetGameChaptersInfo(GetGameChaptersImport import);


        /// <summary>
        /// 获取全局抽水统计
        /// </summary>
        /// <param name="import"></param>
        /// <returns></returns>
        [OperationContract]
        PageResult<ProfitStatisticsExport> GetProfitStatistics(GetProfitStatisticsImport import);

        /// <summary>
        /// 获取个人抽水统计
        /// </summary>
        /// <param name="import"></param>
        /// <returns></returns>
        [OperationContract]
        PageResult<ProfitStatisticsOfPersonExport> GetProfitStatisticsOfPerson(GetProfitStatisticsOfPersonImport import);

        /// <summary>
        /// 编辑牌局
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        NormalResult EditGameRound(EditGameRoundImport import);

        /// <summary>
        /// 编辑游戏设置
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        NormalResult EditGameSetting(EditSettingOfGameImport import);

         /// <summary>
        /// 获取游戏设置
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        NormalResult<GameSettingExport> GetGameSetting(GetSettingOfGameImport import);
        

    }
}
